import { routerReducer as routing } from 'react-router-redux'
import { combineReducers } from 'redux'
import {reducer as reduxAsyncConnect} from 'redux-async-connect'
import {reducer as form} from 'redux-form'
import auth from './containers/App/reducer'
import post from './containers/PostList/reducer'
import gamePostList from './containers/GamePostList/reducer'
import gamePostEditor from './containers/GamePostEditor/reducer'
import gamePostDisplay from './containers/GamePostDisplay/reducer'
import commentList from './containers/CommentList/reducer'
import commentEditor from './containers/CommentEditor/reducer'

const rootReducer = combineReducers({
  auth,
  post,
  gamePostList,
  gamePostEditor,
  gamePostDisplay,
  commentList,
  commentEditor,
  reduxAsyncConnect,
  form,
  routing
})

export default rootReducer



// Reducer Examples:
// function sub_reducer_1(state = {}, action) {
//   return state
// }
